{_obsidian_pattern_tag_public}
A guide for Unity devs learning excalibur.js
See ex.ScreenElement
const image = new ex.ImageSource("bg.jpg");
image.load().then(() => {
const actor = new ex.Actor({ x: 0, y: 0, anchor: ex.vec(0, 0), z: -1 });
actor.graphics.use(image.toSprite());
game.currentScene.add(actor);
});
https://github.com/excaliburjs/dev-tools/tree/main
Unity | Excalibur.js |
---|---|
Monobehavior.Start | https://excaliburjs.com/api/class/Actor#onInitialize |
Monobehavior.Update | |
Monobehavior.FixedUpdate | |
Object.Destroy | https://excaliburjs.com/api/class/Actor#kill |